package ooday01;
//汽车类
public class Car {
    /*String brand;
    String color;
    double price;
    Car (){

    }
    Car(String brand,String color){

    }
    Car (String brand,String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
    }

    void start(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"万的车在启动");

    }
    void run(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"万的车开始跑了");
    }
    void stop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"万的车停止了");
    }*/

String brand;
String color;
double price;


    Car (){

}
      Car (String brand,String color){
        this.brand=brand;
        this.color=color;

}
      Car(String brand, String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
}

void start(){
    System.out.println(brand+"牌子的"+color+"的"+price+"万的车正在启动");
}
void run(){
    System.out.println(brand+"牌子的"+color+"的"+price+"万的车开始跑了");
}
void stop(){
    System.out.println(brand+"牌子的"+color+"的"+price+"万的车停止了");
}














}

